#ifndef T1_PWM_H_
#define T1_PWM_H_

#include "iodef.h"

typedef struct {
        __IO uint32_t PWM_REG[4];
        __IO uint32_t PWM_CTL;
}pwm_reg_t;

#define PWM_C0_ENABLE   _BIT(0)
#define PWM_C1_ENABLE   _BIT(1)
#define PWM_C2_ENABLE   _BIT(2)
#define PWM_C3_ENABLE   _BIT(3)

#define PWM     ((pwm_reg_t *)T1_PWM_BASE)

#endif /* T1_PWM_H_ */
